package com.openvalley.cyj.examination.slice;

import com.openvalley.cyj.examination.ResourceTable;
import com.openvalley.cyj.examination.constant.ConstantOfTableUser;
import com.openvalley.cyj.examination.pojo.User;
import com.openvalley.cyj.examination.save.PageData;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Text;
import ohos.data.dataability.DataAbilityPredicates;

public class DetailAbilitySlice extends AbilitySlice {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_detail);

        Text text_helloWorld = (Text)findComponentById(ResourceTable.Id_text_helloworld);
        PageData pageData = PageData.getInstance();
        text_helloWorld.setText(pageData.getUser().getUser_name() + "登录状态" + pageData.getUser().getUser_is_login());
    }

    @Override
    public void onActive() {
        super.onActive();
    }

    @Override
    public void onForeground(Intent intent) {
        super.onForeground(intent);
    }
}
